/**
 * 
 */
package com.dsteiner.widgets.client.model;

import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;

public class StarModel {

	private PropertyChangeSupport propertyChangeSupport = new PropertyChangeSupport(this);

	public void addPropertyChangeListener(PropertyChangeListener listener) {
		propertyChangeSupport.addPropertyChangeListener(listener);
	}
	
	private int rate;

	public int getRate() {
		return rate;
	}

	public void setRate(int rate) {
		int oldRate = this.rate;
		this.rate = rate;
		propertyChangeSupport.firePropertyChange("rate", oldRate, rate);
	}
}